<?php
namespace app\home\controller;
use think\Controller;
use think\Request;
class Notify extends Controller{
 	// 支付宝通知处理
	public function alipay(){
		if($this->request->isPost()){	
            echo(model('Alipay')->notify());
        }else{
			return $this->success('支付成功',zanpian_user_url('user/center/order'));	
		}
	}
 	// 微信通知处理
	public function weixinpay(){
		if($this->request->isPost()){
            echo(model('WeixinPay')->notify());
        }else{
			return $this->success('支付成功',zanpian_user_url('user/center/order'));	
		}
	} 
	// paypal定单异步通知处理
	public function paypal(){
		if($this->request->isPost()){
			echo(model('Paypal')->notify());
		}else{
			return $this->success('支付成功',zanpian_user_url('user/center/order'));	
		}
	}		
 	// 码支付定单异步通知处理
	public function codepay(){
		if($this->request->isPost()){
			echo model('Codepay')->notify();
		}else{
			return $this->success('支付成功',zanpian_user_url('user/center/order'));	
		}
	}
 	// 云支付定单异步通知处理
	public function atfpay(){
		if($this->request->isPost()){
			echo model('atfpay')->notify();
		}else{
			return $this->success('支付成功',zanpian_user_url('user/center/order'));	
		}
	}	

}
// +----------------------------------------------------------------------
// | ZanPianCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.zanpian.com All rights reserved.
// +----------------------------------------------------------------------
// | BBS:  <http://www.feifeicms.cc>
// +----------------------------------------------------------------------